#include "Game.h"


#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
#else
int main(int argc, char *argv[])
#endif
{
	Game game;

	try {
		game.go();
	}
	catch (Ogre::Exception& e) {
		std::cerr << "An exception has occured: " << e.getFullDescription() << std::endl;
	}
	catch (Gamut::Exception& g) {
		std::cerr << "An exception has occured: " << g.getFullError() << std::endl;
	}

	return (0);
}

#ifdef __cplusplus
}
#endif

